package com.itheima.app;

import com.itheima.dao.OrderDao;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForInstanceOrder {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        OrderDao D = (OrderDao)ctx.getBean("orderDao");
        D.save();
    }
}
